package com.zzy.system.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zzy.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.List;

/**
 * 功能描述:
 *
 * @author zhouzhiyong
 * @date 2024/07/20 20:09
 */
@Data
public class DetectReport extends BaseEntity {
    //主键 自增
    @TableId(type = IdType.AUTO)
    private Integer detectReportId;
    /**
     * 检查报告的唯一标识
     */
    @JSONField(name = "id")
    private Integer reportId;

    /**
     * 检查报告的名称
     */
    @JSONField(name = "report_name")
    private String reportName;

    /**
     * 报告的检测日期
     */
    @JSONField(name = "detect_date")
    private String detectDate;

    /**
     * 执行检测的机构名称
     */
    @JSONField(name = "detect_institution")
    private String detectInstitution;

    /**
     * 送测的机构名称
     */
    @JSONField(name = "detect_sender")
    private String detectSender;

    /**
     * 报告的有效状态，1 表示有效，2 表示失效
     */
    @JSONField(name = "status")
    private Integer status;

    /**
     * 上传该报告的人员
     */
    @JSONField(name = "uploader")
    private String uploader;

    /**
     * 报告的上传时间
     */
    @JSONField(name = "create_time")
    private String guanmaiCreateTime;

    @JSONField(name = "pictures")
    @TableField(exist = false)
    private List<DetectReportPictures> pictures;

    @JSONField(name = "spus")
    @TableField(exist = false)
    private List<DetectReportSpus> spus;
}
